 package net.go176.backpack.core;
 
 import java.io.File;

 import net.go176.backpack.api.IDataAccessor;
 import net.go176.backpack.config.ConfigManager;
 import net.go176.backpack.util.DataUtil;
 import net.go176.backpack.Backpack;
 import org.bukkit.OfflinePlayer;
 
 public abstract class MyDataHandler
   implements IDataAccessor {
   protected static boolean legacy = false;
   protected Backpack p;
   protected ConfigManager cfgMan;
   
   static {
     try {
       OfflinePlayer.class.getDeclaredMethod("getUniqueId", new Class[0]);
     } catch (NoSuchMethodException e) {
       legacy = true;
    } catch (Exception e) {
       e.printStackTrace();
     } 
   }
 
 
 
   
   public MyDataHandler(Backpack plugin) {
     this.p = plugin;
     this.cfgMan = this.p.getConfigManager();
   }
 
   
   public abstract DataType getDataType();
   
   public File getDataFile(String link, String playerName, boolean mkdirs) {
     return DataUtil.getMybDataFile(getDataType(), link, playerName, mkdirs);
   }
 }


/* Location:              D:\User\Xuan\Downloads\MyBackpack1.2.5.jar!\net\saralab\mybackpack\core\MyDataHandler.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.1.3
 */